/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package cz.cuni.mff.d3s.arcas.intermediate.impl;

import cz.cuni.mff.d3s.arcas.intermediate.Connector;
import cz.cuni.mff.d3s.arcas.intermediate.ConnectorEndpoint;
import cz.cuni.mff.d3s.arcas.intermediate.ConnectorFeature;
import cz.cuni.mff.d3s.arcas.intermediate.IntermediatePackage;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.internal.cdo.CDOObjectImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Connector</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link cz.cuni.mff.d3s.arcas.intermediate.impl.ConnectorImpl#getName <em>Name</em>}</li>
 *   <li>{@link cz.cuni.mff.d3s.arcas.intermediate.impl.ConnectorImpl#getEndpoints <em>Endpoints</em>}</li>
 *   <li>{@link cz.cuni.mff.d3s.arcas.intermediate.impl.ConnectorImpl#getAllowedDAs <em>Allowed DAs</em>}</li>
 *   <li>{@link cz.cuni.mff.d3s.arcas.intermediate.impl.ConnectorImpl#getFeatures <em>Features</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class ConnectorImpl extends CDOObjectImpl implements Connector {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ConnectorImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return IntermediatePackage.Literals.CONNECTOR;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected int eStaticFeatureCount() {
		return 0;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
		return (String)eGet(IntermediatePackage.Literals.CONNECTOR__NAME, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setName(String newName) {
		eSet(IntermediatePackage.Literals.CONNECTOR__NAME, newName);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	public EList<ConnectorEndpoint> getEndpoints() {
		return (EList<ConnectorEndpoint>)eGet(IntermediatePackage.Literals.CONNECTOR__ENDPOINTS, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	public EList<String> getAllowedDAs() {
		return (EList<String>)eGet(IntermediatePackage.Literals.CONNECTOR__ALLOWED_DAS, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	public EList<ConnectorFeature> getFeatures() {
		return (EList<ConnectorFeature>)eGet(IntermediatePackage.Literals.CONNECTOR__FEATURES, true);
	}

} //ConnectorImpl
